

#ifndef __EV_TRANS_H__
#define __EV_TRANS_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include "ev_packet.h"

int ev_trans_init(uint32_t baudrate);
int ev_trans_tx(const ev_packet_t *packet);
int ev_trans_rx(ev_packet_t *packet, int32_t timeout_ms);

#ifdef __cplusplus
}
#endif

#endif /* __EV_TRANS_H__ */
